package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class DerivedRepresentation implements ReferenceTypeSpecification {

    private int beginIndex;
    private int endIndex;
    private ListOfAttributes listOfAttributes;

    public DerivedRepresentation(int beginIndex, ListOfAttributes listOfAttributes) {
        this.beginIndex = beginIndex;
        this.endIndex = listOfAttributes.getEndIndex();
        this.listOfAttributes = listOfAttributes;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public ListOfAttributes getListOfAttributes() {
        return listOfAttributes;
    }

}
